using System;
using System.IO;
using System.Drawing;
using System.Windows.Forms;
using System.Text;


namespace br00d
{

	public class StubBuilder : Form
	{
		public static string __compileCode;
		public static TextBox txtInput = new TextBox();

		public StubBuilder ()
		{
		
				this.AutoSizeMode = AutoSizeMode.GrowAndShrink;
				this.Text = "StubBuilder";
				this.ShowInTaskbar = false;
				this.AutoSize = true;
				this.AutoSizeMode = AutoSizeMode.GrowAndShrink;
				
				
				
				
				txtInput.Multiline = true;				
				txtInput.Font = new Font("Monospace",8);
				txtInput.Location = new Point(0,50);
				txtInput.Size = new Size(250,250);
				txtInput.BorderStyle = BorderStyle.FixedSingle;
			
				Button btnCompile = new Button();
				btnCompile.Text = "Compile Stub (with injection)";
				btnCompile.AutoSize = true;
				btnCompile.Size = new Size(txtInput.Width,0);
				btnCompile.Location = new Point(0,0);
				btnCompile.DialogResult = DialogResult.OK;
			
				Button btnCompileNo = new Button();
				btnCompileNo.Text = "Compile Stub (no injection)";
				btnCompileNo.AutoSize = true;
				btnCompileNo.Size = new Size(btnCompile.Width,0);
				btnCompileNo.Location = new Point(0,25);
				btnCompileNo.DialogResult = DialogResult.No;
			btnCompileNo.Click += HandleBtnCompileNoClick;
									
			
			
				Controls.Add(txtInput);	
				Controls.Add(btnCompile);
				Controls.Add(btnCompileNo);
		}

		void HandleBtnCompileNoClick (object sender, EventArgs e)
		{
			__compileCode = txtInput.Text;
		}

		
	}
}
